const http = require('http');
const server = http.createServer(((req, res) => {
    const url = req.url;
    const path = url.split('?')[0];
    /*返回路由*/
    res.end(path);
}));
server.listen(3000);